package com.youlu.campus.admin.auth.service;

import com.youlu.campus.admin.auth.shiro.token.AuthToken;

/**
 * 鉴权Service
 */
public interface AuthTokenService {
    void withAuthTokenCache(AuthToken authToken);

    Boolean checkAuthTokenCache(String userId, String jti, Boolean updateTtl);

    AuthToken getAuthTokenCache(String userId);

    void clearAuthTokenCache(String userId);

    void expireAuthTokenCache(String userId, int seconds);
}
